package com.wenjie.original.entity.vo.OrderBoxAuthority;

import com.mybatisflex.annotation.RelationOneToOne;
import com.wenjie.original.entity.OrderBoxAuthority;
import com.wenjie.original.entity.SysAdmin;
import com.wenjie.original.entity.common.vo.IResVo;
import com.wenjie.original.entity.common.vo.ISelVo;
import com.wenjie.original.entity.vo.OrderBox.OrderBoxVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

public class OrderBoxAuthorityVo {

    @Data
    public static class SelVo extends OrderBoxAuthority implements ISelVo<OrderBoxAuthority> {

        @ApiModelProperty("当前页")
        private Integer pn = 1;

        @ApiModelProperty("页数")
        private Integer ps = 10;
    }

    @Data
    public static class SelfSelvo {

        private Long orderBoxId;

        private Integer sequence;
    }


    @Data
    public static class ResVo extends OrderBoxAuthority implements IResVo<OrderBoxAuthority> {

        @RelationOneToOne(selfField = "sysAdminId", targetField = "sysAdminId")
        private SysAdmin sysAdminInfo;
    }


    @Data
    public static class SelfResVo extends OrderBoxAuthority implements IResVo<OrderBoxAuthority> {

        @RelationOneToOne(selfField = "orderBoxId", targetField = "orderBoxId", targetTable = "order_box")
        private OrderBoxVo.ResOrderInfoResVo orderBoxInfo;

    }


}

